Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active April 24, 2026 11:17
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ
@tokland
tokland / apkpure-dl.sh
Created June 22, 2024 15:06
Download APK files from APKPure
#!/bin/bash
set -e -u -o pipefail
download_apk() {
local app_id=$1
# https://github.com/EFForg/apkeep/blob/master/src/apkpure.rs#L18C54-L18C61
curl -sS "https://api.pureapk.com/m/v3/cms/app_version?hl=en-US&package_name=$app_id" \
-H 'x-sv: 29' \
-H 'x-abis: arm64-v8a,armeabi-v7a,armeabi' \
@sedruski
sedruski / main.py
Created April 23, 2026 15:41
Colab / Drive (yt-dlp)
# ==============================
# Install & Fix Widgets
# ==============================
!pip install -q ipywidgets requests yt-dlp
from google.colab import output
output.enable_custom_widget_manager()
# ==============================
# Mount Drive
# ==============================

useEffect: The Synchronization Architect

In React, useEffect is not a lifecycle hook; it is a tool for synchronization. It connects your component's state to systems outside of React (like a Backend API).

🧠 The Core Concept

An effect runs after the render. The Dependency Array tells React exactly when to re-sync.

💻 Implementation (Data Fetching)

import { useState, useEffect } from 'react';
@CJCShadowsan
CJCShadowsan / hplcalculator.py
Last active April 24, 2026 11:14
HPL.dat calculator - Takes system specs on a single-node basis and calculates N, NB, P, and Q based on available memory and cores
#!/usr/bin/env python3
import math
import psutil
def get_system_info():
# Get the number of physical cores
num_cores = psutil.cpu_count(logical=False)
# Get available physical memory (in bytes)
@rxaviers
rxaviers / gist:7360908
Last active April 24, 2026 11:11
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: